
# assume a standard dt file as the input with the time in the first
# field with the default time format MM-DD-YYYY-HH:MM:SS; given the
# following input file "test.txt"

Text1;Date;Text2
test;03-06-2007-00:10:25;world
hallo;07-01-2006-12:23:24;blbla

# the following will convert the dates in the ISO format.

cat test.txt | ./convdate -d ";" -p -f 2 -o "%Y-%m-%d %T"

Text1;Date;Text2
test;2007-03-06 00:10:25;world
hallo;2006-07-01 12:23:24;blbla

# this is a list of formating options

%a	Abbreviated weekday name - Thu 
%A	Full weekday name -  Thursday 
%b	Abbreviated month name - Aug 
%B	Full month name - August 
%c	Date and time representation - Thu Aug 23 14:55:02 2001 
%d	Day of the month (01-31) - 23 
%H	Hour in 24h format (00-23) - 14 
%I	Hour in 12h format (01-12) - 2 
%j	Day of the year (001-366) - 235 
%m	Month as a decimal number (01-12) - 08 
%M	Minute (00-59) - 55 
%p	AM or PM designation - PM 
%S	Second (00-61) - 02 
%U	Week number with the first Sunday as the first day of week one (00-53) - 33 
%w	Weekday as a decimal number with Sunday as 0 (0-6) - 4 
%W	Week number with the first Monday as the first day of week one (00-53) - 34 
%x	Date representation - 08/23/01 
%X	Time representation - 14:55:02 
%y	Year, last two digits (00-99) - 01 
%y	Year - 2001 
%Z	Timezone name or abbreviation - CDT 
%% 	A % sign - % 

